# Contributor: Waweic <waweic@activ.ism.rocks>
# Maintainer: Waweic <waweic@activ.ism.rocks>
pkgname=anarch
pkgver=1.0
pkgrel=1
pkgdesc="Extremely small 90s style doom clone"
url="https://gitlab.com/drummyfish/anarch"
arch="all"
license="CC0-1.0"
makedepends="sdl2-dev"
subpackages="$pkgname-doc"
source="https://gitlab.com/drummyfish/anarch/-/archive/$pkgver/anarch-$pkgver.tar.gz"
options="!check" # No tests in source

build() {
	cc -O3 -o anarch main_sdl.c -lSDL2
}

package() {
	install -Dm755 anarch -t "$pkgdir"/usr/bin/
	for file in README.md IDEAS.txt; do
		install -Dm644 $file -t "$pkgdir"/usr/share/doc/$pkgname/
	done
}

sha512sums="
f9d3335401a0cfd03ab253e4545675c41ba5d1c552eed3d6932ab6aa2b27d90817a844b5fb0f1199b7e4bc7a6319cc6a5ea0c1014bd1e2ae637c2eef4f4c1fda  anarch-1.0.tar.gz
"
